package com.my;

import javax.servlet.*;
import java.io.IOException;

/**
 * Created by YJH on 2017/6/22 21:36.
 */
public class SecondServlet implements Servlet{

    public SecondServlet() {
        System.out.println("SecondServlet构造器");
    }

    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        System.out.println("SecondServlet → init()");
    }

    @Override
    public ServletConfig getServletConfig() {
        System.out.println("SecondServlet → getServletConfig()");
        return null;
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("SecondServlet → service()");
    }

    @Override
    public String getServletInfo() {
        System.out.println("SecondServlet → getServletInfo()");
        return null;
    }

    @Override
    public void destroy() {
        System.out.println("SecondServlet → destroy()");
    }
}
